import java.util.HashMap;
import java.util.Map;

public class demo28 {
    //哈希表 速度慢，占内存小
  /*  class Solution {
        public boolean isAnagram(String s, String t) {
            if(s.length()!=t.length()) return false;
            Map<Character,Integer> s1 = new HashMap<Character,Integer>();
            for(int i = 0;i<s.length();i++)
            {
                s1.put(s.charAt(i),s1.getOrDefault(s.charAt(i),0)+1);
                s1.put(t.charAt(i),s1.getOrDefault(t.charAt(i),0)-1);
            }
            for(int val : s1.values())
            {
                if(val!=0)
                    return false;
            }
            return true;
        }
    }*/
}
